package cn.oms.auth.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_login_record")
@ApiModel(value="UserLoginRecord对象", description="")
public class UserLoginRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "用户类型（患者、医生、护士等）")
    @TableField("USER_TYPE")
    private Integer userType;

    @ApiModelProperty(value = "浏览器名称")
    @TableField("APP_NAME")
    private String appName;

    @ApiModelProperty(value = "浏览器版本")
    @TableField("APP_VERSION")
    private String appVersion;

    @ApiModelProperty(value = "操作系统")
    @TableField("APP_PLATFORM")
    private String appPlatform;

    @ApiModelProperty(value = "在线状态（true在线 false不在线）")
    @TableField("APP_ONLINE")
    private String appOnline;

    @ApiModelProperty(value = "屏幕分辨率")
    @TableField("APP_WINDOW_SCREEN")
    private String appWindowScreen;

    @ApiModelProperty(value = "颜色")
    @TableField("APP_WINDOW_COLOR_DEPTH")
    private String appWindowColorDepth;

    @ApiModelProperty(value = "用户代理")
    @TableField("APP_USER_AGENT")
    private String appUserAgent;

    @ApiModelProperty(value = "登录标记")
    @TableField("LOGIN_FLAG")
    private Integer loginFlag;

    @ApiModelProperty(value = "登录时间")
    @TableField("LOGIN_TIME")
    private LocalDate loginTime;

    @ApiModelProperty(value = "退出标记")
    @TableField("LOGOUT_FLAG")
    private Integer logoutFlag;

    @ApiModelProperty(value = "退出时间")
    @TableField("LOGOUT_TIME")
    private LocalDate logoutTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
